# -*- codeing = utf-8 -*-
# @Time : 2024/8/14 15:19
# @Author:北希
# @File :getbottomRight.py
# @Software: PyCharm
import re
import json,time
from .getPublicData import *

def getSquareData():
    cars = list(getAllCars())
    carData = []
    for car in cars:
        car.price = re.findall('\d+\.\d+', car.price)
        car.price = '-'.join(car.price)
        carData.append({
            'brand':car.brand,
            'rank':car.rank,
            'carImg':car.carImg,
            'manufacturer':car.manufacturer,
            'carModel':car.carModel,
            'price':car.price,
            'saleVolume':car.saleVolume,
            'marketTime':car.marketTime,
            'insure':car.insure,
            'carName':car.carName
        })
    carData = carData[:100]
    return carData